package com.mall.pay.dto;

import com.mall.commons.result.AbstractRequest;
import com.mall.commons.tool.exception.ValidateException;
import com.mall.pay.constant.PayRetCode;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * @author
 * @date 2020/12/24 19:44
 */
@Data
public class QueryPayStatusRequest extends AbstractRequest {
    public String orderId;
    @Override
    public void requestCheck() {
        if (StringUtils.isBlank(orderId)) {
            throw new ValidateException(PayRetCode.PAY_PARAMETER_ERROR.getCode(),PayRetCode.PAY_PARAMETER_ERROR.getMessage());
        }
    }
}
